import { request } from '@ruifox-cms/utils'

// 获取用户的投递记录
export function selectRecordPage(params) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/record/selectPage',
        method: 'get',
        params
    })
}

// 获取职位的投递记录
export function selectListByPostId(params) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/record/selectListByPostId',
        method: 'get',
        params
    })
}
// 结果通知
export function noticeRecord(data) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/record/notice',
        method: 'post',
        data
    })
}

//分页查询全部职位的投递记录(简历)
export function selectPageAll(params) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/record/selectPageAll',
        method: 'get',
        params
    })
}
//导出投递记录(简历)
export function exportRecord(params) {
    return request({
        baseURL: process.env.NODE_ENV == 'development' ? '/recruitment_api' : '/api',
        url: '/recruitment/record/export',
        method: 'get',
        params
    })
}